package demo3.pellet;

import demo3.Beverage;
import demo3.Condiment;

/**
 * @author 24岁没牵过女人的手 日期：2023/7/6 15:53 文件描述：
 */
public class Mocha extends Condiment {

    Beverage beverage;

    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public double cost() {
        return 0.2+beverage.cost();
    }

    @Override
    public String getDescription() {
        return beverage.getDescription()+", Mocha";
    }
}
